export const createReactInstance = (fiber) => {
  let instance = null;

  if (fiber.tag === 'class_component') {
    // eslint-disable-next-line new-cap
    instance = new fiber.type(fiber.props);
  } else {
    instance = fiber.type;
  }

  return instance;
};
